package com.lw.common.exception


open class ResponseException : Exception {
    var code: Int
    var msg: String

    constructor(errorCode: ErrorCode, e: Throwable? = null) : super(e) {
        code = errorCode.code
        msg = errorCode.err
    }

    constructor(code: Int, msg: String, e: Throwable? = null) : super(e) {
        this.code = code
        this.msg = msg
    }

}

